/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;

using JDCloudSDK.Core.Annotation;
using Newtonsoft.Json;

namespace JDCloudSDK.Bri.Model
{

    /// <summary>
    ///  getPriceReq
    /// </summary>
    public class GetPriceReq
    {

        ///<summary>
        /// 地域信息
        ///Required:true
        ///</summary>
        [Required]
        public string Region{ get; set; }
        ///<summary>
        /// 购买类型, 1:创建 2:续费 3:升配
        ///Required:true
        ///</summary>
        [Required]
        public int BuyType{ get; set; }
        ///<summary>
        /// 购买时长
        ///Required:true
        ///</summary>
        [Required]
        public int TimeSpan{ get; set; }
        ///<summary>
        /// 时间单位，month, year
        ///Required:true
        ///</summary>
        [Required]
        public string TimeUnit{ get; set; }
        ///<summary>
        /// 套餐类型 1.phone 2.IP 3.addr 4.eid 5.signup 6.login 7.marketing 8.pin 9.card
        ///Required:true
        ///</summary>
        [Required]
        public int PackageType{ get; set; }
        ///<summary>
        /// QPS上限(1-7) 1-100 2-300 3-500 4-1000 5-3000 6-5000 7-10000
        ///Required:true
        ///</summary>
        [Required]
        public int QpsLimit{ get; set; }
        ///<summary>
        /// 是否需要爬虫IP识别,当packageType为ip时必填  false-不购买  true-购买
        ///</summary>
        public bool NeedSpiderIp{ get; set; }
        ///<summary>
        /// 注册，登录，营销场景的版本号，当packageTpe为signup,login,marketing时必填   1-标准版  2-定制版
        ///</summary>
        [JsonProperty("version")]
        public int? VersionValue{ get; set; }
    }
}
